package cn.com.tianpeidong.restaurantadmin.project.admin.pos.mapper;

import cn.com.tianpeidong.restaurantadmin.project.admin.pos.entity.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author tianpeidong
 * @version 创建时间: 19-6-2 下午1:39
 */
@Mapper
public interface PaymentMapper {
    int newPayment(Payment payment);

    Payment getById(@Param("id") Long id);

    int makePayment(Payment dbData);

    List<Payment> listPayment(Payment payment);

    Payment getBySaleId(@Param("saleId") Long saleId);

    int updatePaymentStatus(Payment payment);
}
